package com.chh.pdclient.api;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chh.pdclient.dto.RecordAddCmd;
import com.chh.pdclient.dto.RecordUpdateStatusCmd;
import com.chh.pdclient.dto.data.RecordVO;
import com.chh.pdclient.dto.query.RecordListByParamQuery;

public interface IRecordServer {

    IPage<RecordVO> page(RecordListByParamQuery query);

    RecordVO add(RecordAddCmd cmd);

    Boolean update(RecordUpdateStatusCmd cmd);

    /**
     *
     * @param recordId
     * @return 1：商品，2：金额
     */
    Integer prizeType(Long recordId);

    Boolean exchangeMoney(Long recordId);
}
